/*
 * Erstellt mit SharpDevelop.
 * Benutzer: inffbr
 * Datum: 21.10.2009
 * Zeit: 13:21
 * 
 *
 */
using System;
using System.Drawing;
using System.Windows.Forms;

namespace XtraZonePlugin
{
	/// <summary>
	/// Description of frmTokenHandler.
	/// </summary>
	public partial class frmTokenHandler : Form
	{
		public string Token{get; private set;}

        public frmTokenHandler()
		{
			//
			// The InitializeComponent() call is required for Windows Forms designer support.
			//
			InitializeComponent();
			Token = "";
			//
			// TODO: Add constructor code after the InitializeComponent() call.
			//
		}
		
		void BtnLoginClick(object sender, EventArgs e)
		{
			if (tbToken.Text != string.Empty)
			{
                Token = tbToken.Text;
				this.DialogResult = DialogResult.OK;
				this.Close();
			}
			else
			{
				lblError.Text = ("Insert a token please!");
			}
		}

        private void pbHelp_Click(object sender, EventArgs e)
        {
            tHelp.Show(tHelp.GetToolTip(pbHelp), this);
        }
	}
}
